<?php
	/**
	 * This is a MetaControl class, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality
	 * of the MantisProjectFileTable class.  This code-generated class
	 * contains all the basic elements to help a QPanel or QForm display an HTML form that can
	 * manipulate a single MantisProjectFileTable object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a MantisProjectFileTableMetaControl
	 * class.
	 *
	 * Any and all changes to this file will be overwritten with any subsequent
	 * code re-generation.
	 *
	 * @package My QCubed Application
	 * @subpackage MetaControls
	 * @property-read MantisProjectFileTable $MantisProjectFileTable the actual MantisProjectFileTable data class being edited
	 * @property QLabel $IdControl
	 * @property-read QLabel $IdLabel
	 * @property QIntegerTextBox $ProjectIdControl
	 * @property-read QLabel $ProjectIdLabel
	 * @property QTextBox $TitleControl
	 * @property-read QLabel $TitleLabel
	 * @property QTextBox $DescriptionControl
	 * @property-read QLabel $DescriptionLabel
	 * @property QTextBox $DiskfileControl
	 * @property-read QLabel $DiskfileLabel
	 * @property QTextBox $FilenameControl
	 * @property-read QLabel $FilenameLabel
	 * @property QTextBox $FolderControl
	 * @property-read QLabel $FolderLabel
	 * @property QIntegerTextBox $FilesizeControl
	 * @property-read QLabel $FilesizeLabel
	 * @property QTextBox $FileTypeControl
	 * @property-read QLabel $FileTypeLabel
	 * @property QTextBox $ContentControl
	 * @property-read QLabel $ContentLabel
	 * @property QIntegerTextBox $DateAddedControl
	 * @property-read QLabel $DateAddedLabel
	 * @property QIntegerTextBox $UserIdControl
	 * @property-read QLabel $UserIdLabel
	 * @property-read string $TitleVerb a verb indicating whether or not this is being edited or created
	 * @property-read boolean $EditMode a boolean indicating whether or not this is being edited or created
	 */

	class MantisProjectFileTableMetaControlGen extends QBaseClass {
		// General Variables
		/**
		 * @var MantisProjectFileTable objMantisProjectFileTable
		 * @access protected
		 */
		protected $objMantisProjectFileTable;
		/**
		 * @var QForm|QControl objParentObject
		 * @access protected
		 */
		protected $objParentObject;
		/**
		 * @var string strTitleVerb
		 * @access protected
		 */
		protected $strTitleVerb;
		/**
		 * @var boolean blnEditMode
		 * @access protected
		 */
		protected $blnEditMode;

		// Controls that allow the editing of MantisProjectFileTable's individual data fields
		/**
		 * @var QLabel lblId
		 * @access protected
		 */
		protected $lblId;
		/**
		 * @var QIntegerTextBox txtProjectId
		 * @access protected
		 */
		protected $txtProjectId;
		/**
		 * @var QTextBox txtTitle
		 * @access protected
		 */
		protected $txtTitle;
		/**
		 * @var QTextBox txtDescription
		 * @access protected
		 */
		protected $txtDescription;
		/**
		 * @var QTextBox txtDiskfile
		 * @access protected
		 */
		protected $txtDiskfile;
		/**
		 * @var QTextBox txtFilename
		 * @access protected
		 */
		protected $txtFilename;
		/**
		 * @var QTextBox txtFolder
		 * @access protected
		 */
		protected $txtFolder;
		/**
		 * @var QIntegerTextBox txtFilesize
		 * @access protected
		 */
		protected $txtFilesize;
		/**
		 * @var QTextBox txtFileType
		 * @access protected
		 */
		protected $txtFileType;
		/**
		 * @var QTextBox txtContent
		 * @access protected
		 */
		protected $txtContent;
		/**
		 * @var QIntegerTextBox txtDateAdded
		 * @access protected
		 */
		protected $txtDateAdded;
		/**
		 * @var QIntegerTextBox txtUserId
		 * @access protected
		 */
		protected $txtUserId;

		// Controls that allow the viewing of MantisProjectFileTable's individual data fields
		/**
		 * @var QLabel lblProjectId
		 * @access protected
		 */
		protected $lblProjectId;
		/**
		 * @var QLabel lblTitle
		 * @access protected
		 */
		protected $lblTitle;
		/**
		 * @var QLabel lblDescription
		 * @access protected
		 */
		protected $lblDescription;
		/**
		 * @var QLabel lblDiskfile
		 * @access protected
		 */
		protected $lblDiskfile;
		/**
		 * @var QLabel lblFilename
		 * @access protected
		 */
		protected $lblFilename;
		/**
		 * @var QLabel lblFolder
		 * @access protected
		 */
		protected $lblFolder;
		/**
		 * @var QLabel lblFilesize
		 * @access protected
		 */
		protected $lblFilesize;
		/**
		 * @var QLabel lblFileType
		 * @access protected
		 */
		protected $lblFileType;
		/**
		 * @var QLabel lblContent
		 * @access protected
		 */
		protected $lblContent;
		/**
		 * @var QLabel lblDateAdded
		 * @access protected
		 */
		protected $lblDateAdded;
		/**
		 * @var QLabel lblUserId
		 * @access protected
		 */
		protected $lblUserId;

		// QListBox Controls (if applicable) to edit Unique ReverseReferences and ManyToMany References

		// QLabel Controls (if applicable) to view Unique ReverseReferences and ManyToMany References


		/**
		 * Main constructor.  Constructor OR static create methods are designed to be called in either
		 * a parent QPanel or the main QForm when wanting to create a
		 * MantisProjectFileTableMetaControl to edit a single MantisProjectFileTable object within the
		 * QPanel or QForm.
		 *
		 * This constructor takes in a single MantisProjectFileTable object, while any of the static
		 * create methods below can be used to construct based off of individual PK ID(s).
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectFileTableMetaControl
		 * @param MantisProjectFileTable $objMantisProjectFileTable new or existing MantisProjectFileTable object
		 */
		 public function __construct($objParentObject, MantisProjectFileTable $objMantisProjectFileTable) {
			// Setup Parent Object (e.g. QForm or QPanel which will be using this MantisProjectFileTableMetaControl)
			$this->objParentObject = $objParentObject;

			// Setup linked MantisProjectFileTable object
			$this->objMantisProjectFileTable = $objMantisProjectFileTable;

			// Figure out if we're Editing or Creating New
			if ($this->objMantisProjectFileTable->__Restored) {
				$this->strTitleVerb = QApplication::Translate('Edit');
				$this->blnEditMode = true;
			} else {
				$this->strTitleVerb = QApplication::Translate('Create');
				$this->blnEditMode = false;
			}
		 }

		/**
		 * Static Helper Method to Create using PK arguments
		 * You must pass in the PK arguments on an object to load, or leave it blank to create a new one.
		 * If you want to load via QueryString or PathInfo, use the CreateFromQueryString or CreateFromPathInfo
		 * static helper methods.  Finally, specify a CreateType to define whether or not we are only allowed to
		 * edit, or if we are also allowed to create a new one, etc.
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectFileTableMetaControl
		 * @param integer $intId primary key value
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectFileTable object creation - defaults to CreateOrEdit
 		 * @return MantisProjectFileTableMetaControl
		 */
		public static function Create($objParentObject, $intId = null, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			// Attempt to Load from PK Arguments
			if (strlen($intId)) {
				$objMantisProjectFileTable = MantisProjectFileTable::Load($intId);

				// MantisProjectFileTable was found -- return it!
				if ($objMantisProjectFileTable)
					return new MantisProjectFileTableMetaControl($objParentObject, $objMantisProjectFileTable);

				// If CreateOnRecordNotFound not specified, throw an exception
				else if ($intCreateType != QMetaControlCreateType::CreateOnRecordNotFound)
					throw new QCallerException('Could not find a MantisProjectFileTable object with PK arguments: ' . $intId);

			// If EditOnly is specified, throw an exception
			} else if ($intCreateType == QMetaControlCreateType::EditOnly)
				throw new QCallerException('No PK arguments specified');

			// If we are here, then we need to create a new record
			return new MantisProjectFileTableMetaControl($objParentObject, new MantisProjectFileTable());
		}

		/**
		 * Static Helper Method to Create using PathInfo arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectFileTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectFileTable object creation - defaults to CreateOrEdit
		 * @return MantisProjectFileTableMetaControl
		 */
		public static function CreateFromPathInfo($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::PathInfo(0);
			return MantisProjectFileTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}

		/**
		 * Static Helper Method to Create using QueryString arguments
		 *
		 * @param mixed $objParentObject QForm or QPanel which will be using this MantisProjectFileTableMetaControl
		 * @param QMetaControlCreateType $intCreateType rules governing MantisProjectFileTable object creation - defaults to CreateOrEdit
		 * @return MantisProjectFileTableMetaControl
		 */
		public static function CreateFromQueryString($objParentObject, $intCreateType = QMetaControlCreateType::CreateOrEdit) {
			$intId = QApplication::QueryString('intId');
			return MantisProjectFileTableMetaControl::Create($objParentObject, $intId, $intCreateType);
		}



		///////////////////////////////////////////////
		// PUBLIC CREATE and REFRESH METHODS
		///////////////////////////////////////////////

		/**
		 * Create and setup QLabel lblId
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblId_Create($strControlId = null) {
			$this->lblId = new QLabel($this->objParentObject, $strControlId);
			$this->lblId->Name = QApplication::Translate('Id');
			if ($this->blnEditMode)
				$this->lblId->Text = $this->objMantisProjectFileTable->Id;
			else
				$this->lblId->Text = 'N/A';
			return $this->lblId;
		}

		/**
		 * Create and setup QIntegerTextBox txtProjectId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtProjectId_Create($strControlId = null) {
			$this->txtProjectId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtProjectId->Name = QApplication::Translate('Project Id');
			$this->txtProjectId->Text = $this->objMantisProjectFileTable->ProjectId;
			$this->txtProjectId->Required = true;
			return $this->txtProjectId;
		}

		/**
		 * Create and setup QLabel lblProjectId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblProjectId_Create($strControlId = null, $strFormat = null) {
			$this->lblProjectId = new QLabel($this->objParentObject, $strControlId);
			$this->lblProjectId->Name = QApplication::Translate('Project Id');
			$this->lblProjectId->Text = $this->objMantisProjectFileTable->ProjectId;
			$this->lblProjectId->Required = true;
			$this->lblProjectId->Format = $strFormat;
			return $this->lblProjectId;
		}

		/**
		 * Create and setup QTextBox txtTitle
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtTitle_Create($strControlId = null) {
			$this->txtTitle = new QTextBox($this->objParentObject, $strControlId);
			$this->txtTitle->Name = QApplication::Translate('Title');
			$this->txtTitle->Text = $this->objMantisProjectFileTable->Title;
			$this->txtTitle->Required = true;
			$this->txtTitle->MaxLength = MantisProjectFileTable::TitleMaxLength;
			return $this->txtTitle;
		}

		/**
		 * Create and setup QLabel lblTitle
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblTitle_Create($strControlId = null) {
			$this->lblTitle = new QLabel($this->objParentObject, $strControlId);
			$this->lblTitle->Name = QApplication::Translate('Title');
			$this->lblTitle->Text = $this->objMantisProjectFileTable->Title;
			$this->lblTitle->Required = true;
			return $this->lblTitle;
		}

		/**
		 * Create and setup QTextBox txtDescription
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtDescription_Create($strControlId = null) {
			$this->txtDescription = new QTextBox($this->objParentObject, $strControlId);
			$this->txtDescription->Name = QApplication::Translate('Description');
			$this->txtDescription->Text = $this->objMantisProjectFileTable->Description;
			$this->txtDescription->Required = true;
			$this->txtDescription->MaxLength = MantisProjectFileTable::DescriptionMaxLength;
			return $this->txtDescription;
		}

		/**
		 * Create and setup QLabel lblDescription
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblDescription_Create($strControlId = null) {
			$this->lblDescription = new QLabel($this->objParentObject, $strControlId);
			$this->lblDescription->Name = QApplication::Translate('Description');
			$this->lblDescription->Text = $this->objMantisProjectFileTable->Description;
			$this->lblDescription->Required = true;
			return $this->lblDescription;
		}

		/**
		 * Create and setup QTextBox txtDiskfile
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtDiskfile_Create($strControlId = null) {
			$this->txtDiskfile = new QTextBox($this->objParentObject, $strControlId);
			$this->txtDiskfile->Name = QApplication::Translate('Diskfile');
			$this->txtDiskfile->Text = $this->objMantisProjectFileTable->Diskfile;
			$this->txtDiskfile->Required = true;
			$this->txtDiskfile->MaxLength = MantisProjectFileTable::DiskfileMaxLength;
			return $this->txtDiskfile;
		}

		/**
		 * Create and setup QLabel lblDiskfile
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblDiskfile_Create($strControlId = null) {
			$this->lblDiskfile = new QLabel($this->objParentObject, $strControlId);
			$this->lblDiskfile->Name = QApplication::Translate('Diskfile');
			$this->lblDiskfile->Text = $this->objMantisProjectFileTable->Diskfile;
			$this->lblDiskfile->Required = true;
			return $this->lblDiskfile;
		}

		/**
		 * Create and setup QTextBox txtFilename
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFilename_Create($strControlId = null) {
			$this->txtFilename = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFilename->Name = QApplication::Translate('Filename');
			$this->txtFilename->Text = $this->objMantisProjectFileTable->Filename;
			$this->txtFilename->Required = true;
			$this->txtFilename->MaxLength = MantisProjectFileTable::FilenameMaxLength;
			return $this->txtFilename;
		}

		/**
		 * Create and setup QLabel lblFilename
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFilename_Create($strControlId = null) {
			$this->lblFilename = new QLabel($this->objParentObject, $strControlId);
			$this->lblFilename->Name = QApplication::Translate('Filename');
			$this->lblFilename->Text = $this->objMantisProjectFileTable->Filename;
			$this->lblFilename->Required = true;
			return $this->lblFilename;
		}

		/**
		 * Create and setup QTextBox txtFolder
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFolder_Create($strControlId = null) {
			$this->txtFolder = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFolder->Name = QApplication::Translate('Folder');
			$this->txtFolder->Text = $this->objMantisProjectFileTable->Folder;
			$this->txtFolder->Required = true;
			$this->txtFolder->MaxLength = MantisProjectFileTable::FolderMaxLength;
			return $this->txtFolder;
		}

		/**
		 * Create and setup QLabel lblFolder
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFolder_Create($strControlId = null) {
			$this->lblFolder = new QLabel($this->objParentObject, $strControlId);
			$this->lblFolder->Name = QApplication::Translate('Folder');
			$this->lblFolder->Text = $this->objMantisProjectFileTable->Folder;
			$this->lblFolder->Required = true;
			return $this->lblFolder;
		}

		/**
		 * Create and setup QIntegerTextBox txtFilesize
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtFilesize_Create($strControlId = null) {
			$this->txtFilesize = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtFilesize->Name = QApplication::Translate('Filesize');
			$this->txtFilesize->Text = $this->objMantisProjectFileTable->Filesize;
			$this->txtFilesize->Required = true;
			return $this->txtFilesize;
		}

		/**
		 * Create and setup QLabel lblFilesize
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblFilesize_Create($strControlId = null, $strFormat = null) {
			$this->lblFilesize = new QLabel($this->objParentObject, $strControlId);
			$this->lblFilesize->Name = QApplication::Translate('Filesize');
			$this->lblFilesize->Text = $this->objMantisProjectFileTable->Filesize;
			$this->lblFilesize->Required = true;
			$this->lblFilesize->Format = $strFormat;
			return $this->lblFilesize;
		}

		/**
		 * Create and setup QTextBox txtFileType
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtFileType_Create($strControlId = null) {
			$this->txtFileType = new QTextBox($this->objParentObject, $strControlId);
			$this->txtFileType->Name = QApplication::Translate('File Type');
			$this->txtFileType->Text = $this->objMantisProjectFileTable->FileType;
			$this->txtFileType->Required = true;
			$this->txtFileType->MaxLength = MantisProjectFileTable::FileTypeMaxLength;
			return $this->txtFileType;
		}

		/**
		 * Create and setup QLabel lblFileType
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblFileType_Create($strControlId = null) {
			$this->lblFileType = new QLabel($this->objParentObject, $strControlId);
			$this->lblFileType->Name = QApplication::Translate('File Type');
			$this->lblFileType->Text = $this->objMantisProjectFileTable->FileType;
			$this->lblFileType->Required = true;
			return $this->lblFileType;
		}

		/**
		 * Create and setup QTextBox txtContent
		 * @param string $strControlId optional ControlId to use
		 * @return QTextBox
		 */
		public function txtContent_Create($strControlId = null) {
			$this->txtContent = new QTextBox($this->objParentObject, $strControlId);
			$this->txtContent->Name = QApplication::Translate('Content');
			$this->txtContent->Text = $this->objMantisProjectFileTable->Content;
			$this->txtContent->Required = true;
			$this->txtContent->TextMode = QTextMode::MultiLine;
			return $this->txtContent;
		}

		/**
		 * Create and setup QLabel lblContent
		 * @param string $strControlId optional ControlId to use
		 * @return QLabel
		 */
		public function lblContent_Create($strControlId = null) {
			$this->lblContent = new QLabel($this->objParentObject, $strControlId);
			$this->lblContent->Name = QApplication::Translate('Content');
			$this->lblContent->Text = $this->objMantisProjectFileTable->Content;
			$this->lblContent->Required = true;
			return $this->lblContent;
		}

		/**
		 * Create and setup QIntegerTextBox txtDateAdded
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtDateAdded_Create($strControlId = null) {
			$this->txtDateAdded = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtDateAdded->Name = QApplication::Translate('Date Added');
			$this->txtDateAdded->Text = $this->objMantisProjectFileTable->DateAdded;
			$this->txtDateAdded->Required = true;
			return $this->txtDateAdded;
		}

		/**
		 * Create and setup QLabel lblDateAdded
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblDateAdded_Create($strControlId = null, $strFormat = null) {
			$this->lblDateAdded = new QLabel($this->objParentObject, $strControlId);
			$this->lblDateAdded->Name = QApplication::Translate('Date Added');
			$this->lblDateAdded->Text = $this->objMantisProjectFileTable->DateAdded;
			$this->lblDateAdded->Required = true;
			$this->lblDateAdded->Format = $strFormat;
			return $this->lblDateAdded;
		}

		/**
		 * Create and setup QIntegerTextBox txtUserId
		 * @param string $strControlId optional ControlId to use
		 * @return QIntegerTextBox
		 */
		public function txtUserId_Create($strControlId = null) {
			$this->txtUserId = new QIntegerTextBox($this->objParentObject, $strControlId);
			$this->txtUserId->Name = QApplication::Translate('User Id');
			$this->txtUserId->Text = $this->objMantisProjectFileTable->UserId;
			$this->txtUserId->Required = true;
			return $this->txtUserId;
		}

		/**
		 * Create and setup QLabel lblUserId
		 * @param string $strControlId optional ControlId to use
		 * @param string $strFormat optional sprintf format to use
		 * @return QLabel
		 */
		public function lblUserId_Create($strControlId = null, $strFormat = null) {
			$this->lblUserId = new QLabel($this->objParentObject, $strControlId);
			$this->lblUserId->Name = QApplication::Translate('User Id');
			$this->lblUserId->Text = $this->objMantisProjectFileTable->UserId;
			$this->lblUserId->Required = true;
			$this->lblUserId->Format = $strFormat;
			return $this->lblUserId;
		}



		/**
		 * Refresh this MetaControl with Data from the local MantisProjectFileTable object.
		 * @param boolean $blnReload reload MantisProjectFileTable from the database
		 * @return void
		 */
		public function Refresh($blnReload = false) {
			if ($blnReload)
				$this->objMantisProjectFileTable->Reload();

			if ($this->lblId) if ($this->blnEditMode) $this->lblId->Text = $this->objMantisProjectFileTable->Id;

			if ($this->txtProjectId) $this->txtProjectId->Text = $this->objMantisProjectFileTable->ProjectId;
			if ($this->lblProjectId) $this->lblProjectId->Text = $this->objMantisProjectFileTable->ProjectId;

			if ($this->txtTitle) $this->txtTitle->Text = $this->objMantisProjectFileTable->Title;
			if ($this->lblTitle) $this->lblTitle->Text = $this->objMantisProjectFileTable->Title;

			if ($this->txtDescription) $this->txtDescription->Text = $this->objMantisProjectFileTable->Description;
			if ($this->lblDescription) $this->lblDescription->Text = $this->objMantisProjectFileTable->Description;

			if ($this->txtDiskfile) $this->txtDiskfile->Text = $this->objMantisProjectFileTable->Diskfile;
			if ($this->lblDiskfile) $this->lblDiskfile->Text = $this->objMantisProjectFileTable->Diskfile;

			if ($this->txtFilename) $this->txtFilename->Text = $this->objMantisProjectFileTable->Filename;
			if ($this->lblFilename) $this->lblFilename->Text = $this->objMantisProjectFileTable->Filename;

			if ($this->txtFolder) $this->txtFolder->Text = $this->objMantisProjectFileTable->Folder;
			if ($this->lblFolder) $this->lblFolder->Text = $this->objMantisProjectFileTable->Folder;

			if ($this->txtFilesize) $this->txtFilesize->Text = $this->objMantisProjectFileTable->Filesize;
			if ($this->lblFilesize) $this->lblFilesize->Text = $this->objMantisProjectFileTable->Filesize;

			if ($this->txtFileType) $this->txtFileType->Text = $this->objMantisProjectFileTable->FileType;
			if ($this->lblFileType) $this->lblFileType->Text = $this->objMantisProjectFileTable->FileType;

			if ($this->txtContent) $this->txtContent->Text = $this->objMantisProjectFileTable->Content;
			if ($this->lblContent) $this->lblContent->Text = $this->objMantisProjectFileTable->Content;

			if ($this->txtDateAdded) $this->txtDateAdded->Text = $this->objMantisProjectFileTable->DateAdded;
			if ($this->lblDateAdded) $this->lblDateAdded->Text = $this->objMantisProjectFileTable->DateAdded;

			if ($this->txtUserId) $this->txtUserId->Text = $this->objMantisProjectFileTable->UserId;
			if ($this->lblUserId) $this->lblUserId->Text = $this->objMantisProjectFileTable->UserId;

		}



		///////////////////////////////////////////////
		// PROTECTED UPDATE METHODS for ManyToManyReferences (if any)
		///////////////////////////////////////////////





		///////////////////////////////////////////////
		// PUBLIC MANTISPROJECTFILETABLE OBJECT MANIPULATORS
		///////////////////////////////////////////////

		/**
		 * This will save this object's MantisProjectFileTable instance,
		 * updating only the fields which have had a control created for it.
		 */
		public function SaveMantisProjectFileTable() {
			try {
				// Update any fields for controls that have been created
				if ($this->txtProjectId) $this->objMantisProjectFileTable->ProjectId = $this->txtProjectId->Text;
				if ($this->txtTitle) $this->objMantisProjectFileTable->Title = $this->txtTitle->Text;
				if ($this->txtDescription) $this->objMantisProjectFileTable->Description = $this->txtDescription->Text;
				if ($this->txtDiskfile) $this->objMantisProjectFileTable->Diskfile = $this->txtDiskfile->Text;
				if ($this->txtFilename) $this->objMantisProjectFileTable->Filename = $this->txtFilename->Text;
				if ($this->txtFolder) $this->objMantisProjectFileTable->Folder = $this->txtFolder->Text;
				if ($this->txtFilesize) $this->objMantisProjectFileTable->Filesize = $this->txtFilesize->Text;
				if ($this->txtFileType) $this->objMantisProjectFileTable->FileType = $this->txtFileType->Text;
				if ($this->txtContent) $this->objMantisProjectFileTable->Content = $this->txtContent->Text;
				if ($this->txtDateAdded) $this->objMantisProjectFileTable->DateAdded = $this->txtDateAdded->Text;
				if ($this->txtUserId) $this->objMantisProjectFileTable->UserId = $this->txtUserId->Text;

				// Update any UniqueReverseReferences (if any) for controls that have been created for it

				// Save the MantisProjectFileTable object
				$this->objMantisProjectFileTable->Save();

				// Finally, update any ManyToManyReferences (if any)
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}

		/**
		 * This will DELETE this object's MantisProjectFileTable instance from the database.
		 * It will also unassociate itself from any ManyToManyReferences.
		 */
		public function DeleteMantisProjectFileTable() {
			$this->objMantisProjectFileTable->Delete();
		}



		///////////////////////////////////////////////
		// PUBLIC GETTERS and SETTERS
		///////////////////////////////////////////////

		/**
		 * Override method to perform a property "Get"
		 * This will get the value of $strName
		 *
		 * @param string $strName Name of the property to get
		 * @return mixed
		 */
		public function __get($strName) {
			switch ($strName) {
				// General MetaControlVariables
				case 'MantisProjectFileTable': return $this->objMantisProjectFileTable;
				case 'TitleVerb': return $this->strTitleVerb;
				case 'EditMode': return $this->blnEditMode;

				// Controls that point to MantisProjectFileTable fields -- will be created dynamically if not yet created
				case 'IdControl':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'IdLabel':
					if (!$this->lblId) return $this->lblId_Create();
					return $this->lblId;
				case 'ProjectIdControl':
					if (!$this->txtProjectId) return $this->txtProjectId_Create();
					return $this->txtProjectId;
				case 'ProjectIdLabel':
					if (!$this->lblProjectId) return $this->lblProjectId_Create();
					return $this->lblProjectId;
				case 'TitleControl':
					if (!$this->txtTitle) return $this->txtTitle_Create();
					return $this->txtTitle;
				case 'TitleLabel':
					if (!$this->lblTitle) return $this->lblTitle_Create();
					return $this->lblTitle;
				case 'DescriptionControl':
					if (!$this->txtDescription) return $this->txtDescription_Create();
					return $this->txtDescription;
				case 'DescriptionLabel':
					if (!$this->lblDescription) return $this->lblDescription_Create();
					return $this->lblDescription;
				case 'DiskfileControl':
					if (!$this->txtDiskfile) return $this->txtDiskfile_Create();
					return $this->txtDiskfile;
				case 'DiskfileLabel':
					if (!$this->lblDiskfile) return $this->lblDiskfile_Create();
					return $this->lblDiskfile;
				case 'FilenameControl':
					if (!$this->txtFilename) return $this->txtFilename_Create();
					return $this->txtFilename;
				case 'FilenameLabel':
					if (!$this->lblFilename) return $this->lblFilename_Create();
					return $this->lblFilename;
				case 'FolderControl':
					if (!$this->txtFolder) return $this->txtFolder_Create();
					return $this->txtFolder;
				case 'FolderLabel':
					if (!$this->lblFolder) return $this->lblFolder_Create();
					return $this->lblFolder;
				case 'FilesizeControl':
					if (!$this->txtFilesize) return $this->txtFilesize_Create();
					return $this->txtFilesize;
				case 'FilesizeLabel':
					if (!$this->lblFilesize) return $this->lblFilesize_Create();
					return $this->lblFilesize;
				case 'FileTypeControl':
					if (!$this->txtFileType) return $this->txtFileType_Create();
					return $this->txtFileType;
				case 'FileTypeLabel':
					if (!$this->lblFileType) return $this->lblFileType_Create();
					return $this->lblFileType;
				case 'ContentControl':
					if (!$this->txtContent) return $this->txtContent_Create();
					return $this->txtContent;
				case 'ContentLabel':
					if (!$this->lblContent) return $this->lblContent_Create();
					return $this->lblContent;
				case 'DateAddedControl':
					if (!$this->txtDateAdded) return $this->txtDateAdded_Create();
					return $this->txtDateAdded;
				case 'DateAddedLabel':
					if (!$this->lblDateAdded) return $this->lblDateAdded_Create();
					return $this->lblDateAdded;
				case 'UserIdControl':
					if (!$this->txtUserId) return $this->txtUserId_Create();
					return $this->txtUserId;
				case 'UserIdLabel':
					if (!$this->lblUserId) return $this->lblUserId_Create();
					return $this->lblUserId;
				default:
					try {
						return parent::__get($strName);
					} catch (QCallerException $objExc) {
						$objExc->IncrementOffset();
						throw $objExc;
					}
			}
		}

		/**
		 * Override method to perform a property "Set"
		 * This will set the property $strName to be $mixValue
		 *
		 * @param string $strName Name of the property to set
		 * @param string $mixValue New value of the property
		 * @return mixed
		 */
		public function __set($strName, $mixValue) {
			try {
				switch ($strName) {
					// Controls that point to MantisProjectFileTable fields
					case 'IdControl':
						return ($this->lblId = QType::Cast($mixValue, 'QControl'));
					case 'ProjectIdControl':
						return ($this->txtProjectId = QType::Cast($mixValue, 'QControl'));
					case 'TitleControl':
						return ($this->txtTitle = QType::Cast($mixValue, 'QControl'));
					case 'DescriptionControl':
						return ($this->txtDescription = QType::Cast($mixValue, 'QControl'));
					case 'DiskfileControl':
						return ($this->txtDiskfile = QType::Cast($mixValue, 'QControl'));
					case 'FilenameControl':
						return ($this->txtFilename = QType::Cast($mixValue, 'QControl'));
					case 'FolderControl':
						return ($this->txtFolder = QType::Cast($mixValue, 'QControl'));
					case 'FilesizeControl':
						return ($this->txtFilesize = QType::Cast($mixValue, 'QControl'));
					case 'FileTypeControl':
						return ($this->txtFileType = QType::Cast($mixValue, 'QControl'));
					case 'ContentControl':
						return ($this->txtContent = QType::Cast($mixValue, 'QControl'));
					case 'DateAddedControl':
						return ($this->txtDateAdded = QType::Cast($mixValue, 'QControl'));
					case 'UserIdControl':
						return ($this->txtUserId = QType::Cast($mixValue, 'QControl'));
					default:
						return parent::__set($strName, $mixValue);
				}
			} catch (QCallerException $objExc) {
				$objExc->IncrementOffset();
				throw $objExc;
			}
		}
	}
?>